package com.iwhalecloud.citybrain.flow.platform.manager.application.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author : liyang
 * @date : 2021/12/4 22:57
 */
@Component
@ConfigurationProperties(prefix = "custom.rest.connection")
@Data
public class RestProperties {

    @Value("${connection-request-timeout:15000}")
    private int connectionRequestTimeout;

    @Value("${connect-timeout:15000}")
    private int connectTimeout;

    @Value("${read-timeout:15000}")
    private int readTimeout;
}
